<!--相关-->
{php $duoquans = \Phpcmf\Service::M()->db->table('1_quan_shezhi')->where('dirname', 'quan')->get()->getRowArray();}
{php $duoquan = dr_string2array($duoquans['setting']);}
{php $quanliulan = $duoquan['pages']['quan_liulan'];}
{php $quantupianlist = $duoquan['pages']['quan_tupian_list'];}
{if $quantupianlist == 1}
    {php $houzhuitu = '';}
{elseif $quantupianlist == 2}
    {php $houzhuitu = $qiniusuolietu;}
{elseif $quantupianlist == 3}
    {php $houzhuitu = $alisuolietu;}
{elseif $quantupianlist == 4}
    {php $houzhuitu = $tengxunsuolietu;}
{/if}
{php $taga = explode(",", $keywords);}
{php $taga = dr_array_rand($taga);}
{if $keywords}
<div class="d-col-md-8-10">
	<div class="d-kuan d-gao-50 d-yincang"></div>
	<div class="d-yuanjiao-10 d-kuan  d-wenzi-20  ">
		<div> <i class="fa fa-copy"></i> 相关帖子 </div>
	</div>
</div>
{loop $taga $tt}
    {php $gjc='%'.$tt.'%';}
    {php $ikey = 0;}
    
	{mform form=son module=quan shenhe=1 site=1 NOTIN_id=$id num=1 LIKE_keywords=$gjc return=t}
	{php $imgs = dr_get_content_img($t.neirong);}
	    
		<div class="d-col-md-8-10">
			<div class="d-yuanjiao-10 d-kuan d-waigao-20 d-beijing-baise d-bianhua-10 ">
				<!--头部-->
				<div class="d-kuan d-buhuanhang  d-xia-10">
					<!--头部-->
					<div class="d-yuanjiao-10 d-quxian-0">
						<a href="{d_huiyuan_url($t.uid)}">
							<img src="{dr_avatar($t.uid)}" width="40" height="40" class="d-yuanjiao-50"/>
						</a>
					</div>
					<div class="d-zuo-10 d-kuan">
						<div class="d-buhuanhang">
							<div class="d-jiacu d-quxian-0">
							    <!--/quan/{$t.id}.html-->
								<a href="{d_huiyuan_url($t.uid)}">
								{php $userweixin=\Phpcmf\Service::M()->db->table('member_oauth')->where('uid', $t.uid)->get()->getRowArray();}
								{php $user=dr_member_info($t.uid);}
									{if $userweixin.nickname}
										{$userweixin.nickname}
									{elseif $user.name}
										{$user.name}
									{else}
										{$user.username}
									{/if}
								</a>
							</div>
							{if $t.uid == $uid}
							<div class="d-zuo-10">
								<div class="d-neikuang-1-5 d-wenzi-10 d-beijing-hei d-yuanjiao-5 d-zitiyanse-bai">圈 主</div>
							</div>
							{/if}
							
								{loop $user.group $tt}
								    {if $tt.group_icon}<div class="d-zuo-10"><img src="{$tt.group_icon}" width="60" height="15" class="d-yuanjiao-50"/></div>{/if}
								{/loop}
							
						</div>
						<div class="d-zitiyanse-hui d-wenzi-12">
							{php $user=dr_member_info($t.uid);}
							{loop $user.group $tt}
								{$tt.group_name}
							{/loop}
							 <i class="fa fa-eye d-zuo-10"></i><span class="d-zuo-10">{$t.hits}</span>
							<span class="d-wenzi-12 d-zitiyanse-hui" style="margin: 0px 0 0px 15px;">
								{php $ip=\Phpcmf\Service::L('ip')->address($t.inputip);}
								{if $ip == "未知地区"}
								<i class="fa fa-map-marker"></i> 中国
								{else}
								<i class="fa fa-map-marker"></i> {$ip;}
								{/if}
							</span>
						</div>
					</div>
					<div class="d-kuan-160">
						<div class="d-zitiyanse-hui d-zuo-10 d-div-you d-buhuanhang">
						    <a  id="guanzhu_list_{$t.uid}" data-id="{$t.uid}" class="guanzhu_list">
							    {dr_guanzhu_list($t.uid, $member.id)} 
							</a>
						</div>
					</div>
				</div>
				<!--列表内容-->
				<div class="d-kuan d-xia-10 d-quxian-0">
					<a href="{dr_son_url($t)}"> 
						<div class="d-jiacu d-wenzi-16">
							{if $t.jinghua == 1}<span class="d-wenzi-12 d-biaoqian-30 d-yuanjiao-5" >精华</span> {/if}
							{if $t.qiuzukaiguan == 1} <span style="color: #009c00;">[ 求租 ]</span> {/if}
							{if $t.chuzukaiguan == 1}<span style="color: #ff7171;">[ 出租 ]</span> {/if}
							<!--求职-->
							{if $t.zpkg == 1}
								<span style="color: #ff7171;">[ 招聘 ]</span>
							{/if}
							<!--求职-->
							{if $t.qzkg == 1}
							<span style="color: #9d3eb7;">[ 求职 ]</span>
							{/if}
							{$t.title}
						</div>
						<!--简介-->
						<div class="d-chaochu-6 d-wenzi-14 d-list d-zitiyanse-hui d-huanhang {if !$t.title} d-zitiyanse-hei d-wenzi-16{/if}">
						    {if $listwenzi['is_listwenzi'] == 1}
							    {if $t.caijizhanshi == '1'}
						        	{template "index-list-caiji.html"}
						        {else}
						        	{dr_strcut(dr_clearhtml($t.neirong), 70)}
						        {/if}
							{else}
								{if $t.caijizhanshi == '1'}
								    {template "index-list-caiji.html"}
						    	{else}
						    		{dr_get_content_quimgs($t.neirong)}
						    	{/if}
							{/if}
						</div>
					</a>
					<div class="d-shang-10 d-kuan"></div>
					{if $t.caijizhanshi == '0'}
						{if $listwenzi['is_listtupian'] == 1}
						<div id="d-tupian-{$t.id}">
							{if !$t.thumb}
								{if $quantupianlist == 0}
									{template "index-tupian-list.html"}
								{else}
									{template "index-tupian-url-list.html"}
								{/if}
							{else}
						    	{if $quantupianlist == 0}
						    		{template "index-tupian-list.html"}
						    	{else}
						    		{template "index-tupian-url-list.html"}
						    	{/if}
							{/if}
						</div>
						<script>
						var viewer = new Viewer(document.getElementById('d-tupian-{$t.id}'), {
						  	//url: 'data-kujue',
							toolbar: false,//关闭工具栏
							title: false,//关闭标题栏
							backdrop: true, //点击遮罩层不关闭
							rotatable: false, //图片是否可旋转
							scalable: false, //图片是否可翻转
							tooltip: false, //显示缩放百分比
						  });
						</script>
					    {else}
					
						<a href="{dr_url('quan/son/index',['id' => $t.id])}"> 
						    {if !$t.thumb}
						    	{if $quantupianlist == 0}
						    		{template "index-tupian-list.html"}
						    	{else}
						    		{template "index-tupian-url-list.html"}
						    	{/if}
						    {else}
						    	{if $quantupianlist == 0}
						    		{template "index-tupian-list.html"}
						    	{else}
						    		{template "index-tupian-url-list.html"}
						    	{/if}
						    {/if}
						</a>
						{/if}
					{else}
						    
					{/if}
				</div>
			</div>
		</div>
		{php $ikey++;}
	{/mform}
	
{/loop}
<div class="d-kuan d-bianhua-10 d-yincang"></div>
<div class="d-kuan d-gao-70 d-yincang-pc"></div>
{/if}


